package com.itheima.zixi5.XianchengTongbu.TongbuFangfa;

//模拟一个银行两人同时取钱一个账户程序来模拟线程安全问题
public class Test {
    public static void main(String[] args) {
        //创建一个公共的账户对象
        Account account = new Account("6228480", 100000);
        new DrawThread(account,"小明").start();//线程1
        new DrawThread(account,"小红").start();//线程2

    }
}
